package com.voice.server.input;

import com.voice.server.entity.Device;
import com.wangjiacai.hqlQuery.hql.ClassName;
import com.wangjiacai.hqlQuery.hql.Ignore;
import com.wangjiacai.hqlQuery.hql.condition.where.Equal;
import com.wangjiacai.hqlQuery.hql.condition.where.In;
import lombok.Data;

import java.util.List;

@ClassName(Device.class)
@Data
public class DeviceQuery {

    @In(column ="userId" ,hql = "select id from User where phone like %:phone%")
    private String phone;

    @Equal
    private String userId;

    private String mac;

    @Equal
    private Integer status;
}
